<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>location对象</title>
	<script>
		function redirect(){
			var selEle = document.getElementById('friendLink');
			var url = selEle.value;
			//设置浏览器地址栏中的地址为获取到的信息
			location.href = url;
		}
	</script>
</head>
<body>
	友情链接:
	<select id="friendLink" onchange="redirect()">
		<option value="">请选择</option>
		<option value="http://www.sina.com.cn">新浪</option>
		<option value="http://www.163.com">网易</option>
		<option value="http://www.taobao.com">淘宝</option>
	</select>
</body>
</html>